.personnel-detail-container {
  padding: 20px 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--light-text-color);
}

.back-button:hover {
  background-color: var(--primary-color);
}

.personnel-info-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 基本信息卡片 */
.basic-info-card, .detail-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.profile-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

.profile-image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--light-text-color);
}

.profile-title {
  flex: 1;
}

.profile-title h2 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.profile-subtitle {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.position {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.organization {
  font-size: 14px;
  color: var(--light-text-color);
}

.info-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 20px 0;
}

.info-rows {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.info-row {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 12px;
  color: var(--light-text-color);
  margin-bottom: 5px;
}

.info-value {
  font-size: 14px;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary-color);
  text-decoration: none;
}

.external-link:hover {
  text-decoration: underline;
}

/* 详情卡片 */
.detail-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--primary-color);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.biography {
  white-space: pre-line;
  line-height: 1.6;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.details-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}

.details-key {
  width: 30%;
  font-weight: 500;
  color: var(--primary-color);
}

/* 变更日志 */
.changelogs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.changelog-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.changelog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.02);
}

.changelog-type {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.changelog-new {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
}

.changelog-updated {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--secondary-color);
}

.changelog-removed {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
}

.changelog-time {
  font-size: 12px;
  color: var(--light-text-color);
}

.changed-fields {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.changed-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-name {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.field-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.02);
  padding: 10px;
  border-radius: 4px;
}

.old-value, .new-value {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.value-label {
  font-size: 12px;
  color: var(--light-text-color);
}

.log-details {
  padding: 15px;
  color: var(--light-text-color);
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .field-values {
    grid-template-columns: 1fr;
  }
}

/* 结构化信息相关样式 */
.structured-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.structured-table tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.structured-key {
  width: 30%;
  padding: 12px 15px;
  vertical-align: top;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: capitalize;
}

.structured-value {
  padding: 12px 15px;
  vertical-align: top;
  line-height: 1.5;
}

.nested-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  border-left: 3px solid rgba(0, 0, 0, 0.05);
}

.nested-key {
  width: 30%;
  padding: 8px 12px;
  vertical-align: top;
  font-weight: normal;
  color: var(--secondary-color);
  text-transform: capitalize;
}

.nested-value {
  padding: 8px 12px;
  vertical-align: top;
}

.nested-objects {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nested-object {
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
}

.structured-list {
  margin: 0;
  padding-left: 20px;
}

.structured-list li {
  margin-bottom: 6px;
}

.role-description {
  line-height: 1.6;
  color: var(--secondary-color);
  font-style: italic;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  margin-bottom: 15px;
} 